package cn.detu.ln.service;

import ch.qos.logback.core.pattern.util.RegularEscapeUtil;
import cn.detu.ln.entity.Weight;
import cn.detu.ln.utils.RestUtil;

/**
 * @author :ln
 * @version : 1.0
 * @Project : education_backend
 * @Package : cn.detu.ln.service
 * @ClassName : WeightService.java
 * @createTime : 2023/4/3 10:46
 * @Description :
 */
public interface WeightService {
    RestUtil selectAll();
    // 根据课程号查询相对应课程权重
    RestUtil selectWeightByCouId(Integer couId);
    // 根据权重id删除
    RestUtil weightDelete(Integer id);

    RestUtil weightUpdate(Weight weight);

    RestUtil weightInsert(Weight weight);
    // 根据课程名称实现模糊查询
    RestUtil queryWeightByPage(Integer current, Integer rows, String search);
    RestUtil queryWeightByPredictRate(Integer current, Integer rows, Float rate);
    RestUtil queryWeightByCouIdPage(Integer current, Integer rows, String search);
}
